import { Modal } from 'antd';
import React, { PropsWithChildren } from 'react';

interface CreateFormProps {
  modalVisible: boolean;
  onCancel: () => void;
  title:  string;
  modalWidth?:number;
}

const SourceModal: React.FC<PropsWithChildren<CreateFormProps>> = (props) => {
  const { modalVisible, onCancel,title,modalWidth } = props;
  const width = modalWidth||420
  return (
    <Modal
      destroyOnClose
      title={title}
      width={width}
      open={modalVisible}
      onCancel={() => onCancel()}
      footer={null}
    >
     
    </Modal>
  );
};

export default SourceModal;
